package com.example.ass.mapper;

import com.example.ass.pojo.Student;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StudentMapper {
    @Select("SELECT * FROM student WHERE name = #{name}")
    Student findByStudentName(String name);

    @Insert("INSERT INTO student(name, password) VALUES(#{name}, #{password})")
    void insertStudent(Student student);
}